<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	String block_yn		= StringUtil.nvl(request.getParameter("block_yn"));

	HashMap param = new HashMap();
	param.put("block_yn", block_yn);


	HomeDAO dao = new HomeDAO();

	HashList list 	= dao.selectFlyList(param);

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%= HOME_NAME %></title>
<link href="../css/home.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script>
	function fnShowNotice(air_id) {
		$('.popup').addClass('hidden');
		$('#fly_notice'+air_id).removeClass('hidden');
	}

	function fnHideNotice() {
		$('.popup').addClass('hidden');
	}
</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <%@ include file="/home/include/top_menu.jsp" %>
  <tr>
    <td valign="top" align="center" class="sub_con"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <!-- 좌측 네비 시작-->
        <%@ include file="/home/include/left_menu.jsp" %>
        <!-- 좌측 네비 끝-->
        <td width="50"></td>
        <!-- 컨텐츠 시작-->
        <td valign="top" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../images/sub/<%=pmenu_id %>_title_01.gif" alt="할인항공"  /><img src="../images/sub/<%=pmenu_id %>_title_sub.gif"  /></td>
                <td align="right" valign="bottom"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5"><img src="../images/sub/sub_line.gif" width="723" height="5" /></td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <tr>
            <td class="sub_title"><%= menu_name %></td>
          </tr>
          <tr>
            <td height="30"></td>
          </tr>
          <!--항공표 시작-->
          <tr>
          	<td valign="top" bgcolor="#2b2b2e"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          	  <tr>
          	    <td width="15"></td>
          	  </tr>
              <tr>
                <td valign="top" bgcolor="#2b2b2e">
        			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                   	  <tr height="37">
                   	  	<th width="4"></th>
                   	  	<th align="center"><img src="../images/sub/sub3_f_01.gif" alt="항공사"  /></th>
          	            <th width="130" align="center"><img src="../images/sub/sub3_f_02.gif" alt="출발지"  /></th>
          	            <th width="130" align="center"><img src="../images/sub/sub3_f_03.gif" alt="여행지"  /></th>
          	            <th width="80" align="center"><img src="../images/sub/sub3_f_04.gif" alt="요금타입"  /></th>
          	            <th width="80" align="center"><img src="../images/sub/sub3_f_05.gif" alt="항공료"  /></th>
          	            <th width="80" align="center"><img src="../images/sub/sub3_f_07.gif" alt="소요시간"  /></th>
          	            <th  align="center"><img src="../images/sub/sub3_f_tab_06.gif" alt="규정" /></th>
						<th width="4"></th>
                   	  </tr>

          <% for (int i = 0; i < list.size(); i++) {	%>

       				  <tr height="36">
                         <td ></td>
                         <td style="background-color:#ffffff; text-align:center" >
                         	<img src="../images/sub/03_ico_<%= list.get("air_code",i) %>.gif" alt="<%= list.get("air_name",i) %>" align="absmiddle"/>
                        	<%= list.get("air_name",i) %>
                         </td>
                         <td style="background-color:#ffffff; text-align:center" ><%= list.get("from_land_name", i) %></td>
                         <td style="background-color:#ffffff; text-align:center" ><%= list.get("to_land_name", i) %></td>
                         <td style="background-color:#ffffff; text-align:center" ><%= list.get("fly_type_name",i) %></td>
                         <td style="background-color:#ffffff; text-align:center" >$<%= StringUtil.toPrice(list.get("sales_price",i)) %></td>
                         <td style="background-color:#ffffff; text-align:center" ><%= list.get("take_time",i) %></td>
                         <td style="background-color:#ffffff; text-align:center" >
                         	<a href="#nohref" onclick="fnShowNotice(<%= list.get("fly_id",i) %>)"><img src="../images/sub/sub3_view_btn.gif"/></a>
                         	<div id="fly_notice<%= list.get("fly_id",i) %>" class="popup hidden">
                         		<div class="content">
                         		<%= list.get("fly_notice",i) %>
                         		</div>
                         		<div style="text-align:right; padding-right:20px">
                         			<a href="#nohref" onclick="fnHideNotice()">close</a>
                         		</div>
                         	</div>
                         </td>
                         <td></td>
                      </tr>
                      <tr height="1">
                         <td></td>
                       	<td colspan="7" style="background-color:#cccccc"></td>
                       	<td></td>
                      </tr>

          <%		}	 %>
                    </table>
				</td>
           	</tr>
                  <tr height="4"></tr>
           	</table>
          </td>
          </tr>
          <!--항공표 끝-->
          <tr>
            <td height="80"></td>
          </tr>

        </table></td>
        <!-- 컨텐츠 끝-->
      </tr>
    </table></td>
  </tr>
  <%@ include file="/home/include/footer.jsp" %>
</table>
</body>
</html>
